#pragma once

#include "../stdafx.h"

class CHuangliDlg :	public CWindowWnd, public INotifyUI
{
public:
	CHuangliDlg(void);
	~CHuangliDlg(void);

	LPCTSTR GetWindowClassName() const;	
	UINT GetClassStyle() const;
	void OnFinalMessage(HWND hWnd);
	void Init();
	LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

public:
	CPaintManagerUI m_pm;

	CButtonUI	*m_BtnCalender;
	CButtonUI	*m_BtnLoading;
	CButtonUI	*m_BtnCopy;
	CLabelUI	*m_LbCalender1;
	CLabelUI	*m_LbCalender2;
	CLabelUI	*m_LbCalender3;
	CTextUI		*m_TxtYu;
	CTextUI		*m_TxtJi;
	CTextUI		*m_TxtChong;
	CTextUI		*m_TxtSha;
	CTextUI		*m_TxtZhengchong;
	CTextUI		*m_TxtTaishen;

	wstring		m_LastStr;

protected:	
	void Notify(TNotifyUI& msg);
	void OnPrepare(TNotifyUI& msg);
	void OnExit(TNotifyUI& msg);


	void OnLoadingData(const wstring &Time);
	void SetClipboardData(LPWSTR strData);

	void OnBtnLoading();


};
